package com.glela.serial.model.response;

import java.util.ArrayList;
import java.util.List;

import org.springframework.util.StringUtils;

import com.glela.goods.model.vo.goods.GoodsSimpleVo;

/**
 * 期详情VO
 * 
 * @author 卫耀华
 *
 */
public class ResponseSerialDetail {

	private int serialId;// 期ID
	private String title = "";// 标题
	private String coverImgpath = "";// 封面图
	private String wxSmallImgpath = "";// 微信小图链接
	private List<GoodsSimpleVo> goodsList; // 本期发布的商品
	private List<ResponseSerialContent> serialContentImages; // 本期下面的图片
	private String wxBigImgpath;// 微信大图链接

	public String getWxSmallImgpath() {
		return wxSmallImgpath;
	}

	public void setWxSmallImgpath(String wxSmallImgpath) {
		if (StringUtils.isEmpty(wxSmallImgpath)) {
			this.wxSmallImgpath = "";
		} else {
			this.wxSmallImgpath = wxSmallImgpath;
		}
	}

	public int getSerialId() {
		return serialId;
	}

	public void setSerialId(int serialId) {
		this.serialId = serialId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		if (StringUtils.isEmpty(title)) {
			this.title = "";
		} else {
			this.title = title;
		}
	}

	public String getCoverImgpath() {
		return coverImgpath;
	}

	public void setCoverImgpath(String coverImgpath) {
		if (StringUtils.isEmpty(coverImgpath)) {
			this.coverImgpath = "";
		} else {
			this.coverImgpath = coverImgpath;
		}
	}

	public List<GoodsSimpleVo> getGoodsList() {
		return goodsList;
	}

	public void setGoodsList(List<GoodsSimpleVo> goodsList) {
		if (goodsList == null || goodsList.size() == 0) {
			this.goodsList = new ArrayList<GoodsSimpleVo>();
		} else {
			this.goodsList = goodsList;
		}
	}

	public List<ResponseSerialContent> getSerialContentImages() {
		return serialContentImages;
	}

	public void setSerialContentImages(List<ResponseSerialContent> serialContentImages) {
		if (serialContentImages == null || serialContentImages.size() == 0) {
			this.serialContentImages = new ArrayList<ResponseSerialContent>();
		} else {
			this.serialContentImages = serialContentImages;
		}
	}

	public String getWxBigImgpath() {
		return wxBigImgpath;
	}

	public void setWxBigImgpath(String wxBigImgpath) {
		if (StringUtils.isEmpty(wxBigImgpath)) {
			this.wxBigImgpath = "";
		} else {
			this.wxBigImgpath = wxBigImgpath;
		}
	}
}
